<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="dic" uri="http://www.jyb.com/tags/dic" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%> 

	<header class="am-topbar am-topbar-inverse">
		<h1 class="am-topbar-brand">
			集运帮
		</h1>
		<button
			class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
			data-am-collapse="{target: '#doc-topbar-collapse-3'}">
			<span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span>
		</button>
		<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse-3">
			<ul class="am-nav am-nav-pills am-topbar-nav">

				<li class="am-dropdown" data-am-dropdown="">
					<a class="am-dropdown-toggle" data-am-dropdown-toggle="" href="javascript:;">上海港区 <span class="am-icon-caret-down"></span></a>
					<ul class="am-dropdown-content">
						<li><a href="#">其他港区正在努力开发中</a></li>
					</ul>
				</li>
				<li class=" ${nav=='index'?'am-active':'' }"><a href="<%=request.getContextPath() %>/">首页</a></li>
				<li class=" ${nav=='cbxx'?'am-active':'' }"><a href="<%=request.getContextPath() %>/cbxx">船舶信息</a></li>
				<li class=" ${nav=='ypcd'?'am-active':'' }"><a href="<%=request.getContextPath() %>/ypcd">预配仓单</a></li>
				<li class=" ${nav=='jxjh'?'am-active':'' }"><a href="<%=request.getContextPath() %>/jxjh">进箱计划</a></li>
				<li class=" ${nav=='hgfx'?'am-active':'' }"><a href="<%=request.getContextPath() %>/hgfx">海关放行</a></li>
				<li class=" ${nav=='cqjh'?'am-active':'' }"><a href="<%=request.getContextPath() %>/cqjh">船期计划</a></li>
				<li class=" ${nav=='gqxh'?'am-active':'' }"><a href="<%=request.getContextPath() %>/gqxh">港区箱货</a></li>
				<li class=" ${nav=='dzxd'?'am-active':'' }"><a href="<%=request.getContextPath() %>/dzxd">电子箱单</a></li>
				
			</ul>
			
			<div class="am-topbar-right">
			
			
				<c:choose>
					<c:when test="${sessionScope.user!=null }">
						<a href="<%=request.getContextPath() %>/myOrder"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='myOrder'?'am-active':'' }" >我的货单</button></a>
						<a href="<%=request.getContextPath() %>/currentUser"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='currentUser'?'am-active':'' }" >${sessionScope.user.nickname }</button></a>
						<a href="<%=request.getContextPath() %>/loginout"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm" >注销</button></a>
					</c:when>
					<c:otherwise>
						<a href="<%=request.getContextPath() %>/login"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='login'?'am-active':'' }">登录</button></a>
						<a href="<%=request.getContextPath() %>/register"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='register'?'am-active':'' }">注册</button></a>
					</c:otherwise>
				</c:choose>
			
				<a href="<%=request.getContextPath() %>/about"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='about'?'am-active':'' }">关于我们</button></a>
			</div>

	</div>


	</header>

	<br/>
	
	<!-- 
	
		<div class="am-container">
		<div class="am-alert am-alert-danger" data-am-alert="">
			<button type="button" class="am-close">×</button>
			通告：洋山港信息暂时无法查询！给您造成的不便请谅解！
		</div>
	</div>
	 -->